/*
 * FreeModbus Libary: BSD Socket Library Port
 * Copyright (C) 2006 Christian Walter <wolti@sil.at>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * File: $Id$
 */

/**********************************************************
 *	Linux TCP support.
 *	Based on Walter's project.
 *	Modified by Steven Guo <gotop167@163.com>
 ***********************************************************/

#ifndef _W5500Fun_H_
#define _W5500Fun_H_

#include <assert.h>
#include "socket.h"
#include "w5500.h"
#include "Fun_Message_Fifo.h"

extern const enum ENFUNSTATELIST cnW5500FunInitList[];
extern const unsigned char cnW5500FunInitLen;

extern const enum ENFUNSTATELIST cnW5500FunAppReset[];
extern const unsigned char cnW5500FunAppResetLen;

char W5500_Socket_Max_Get(void);
void W5500_Hard_Init(void);
char W5500_Socket_Get_Free(void);

int W5500FunMsg_enW5500Fun_hardInit(char *sp);
int W5500FunMsg_enW5500Fun_ResetPrev(char *sp);
int W5500FunMsg_enW5500Fun_ResetSucc(char *sp);
int W5500FunMsg_enW5500Fun_Sock_Buf_Init(char *sp);
int W5500FunMsg_enW5500Fun_AutoSet(char *sp);
int W5500FunMsg_enW5500Fun_MacSet(char *sp);
int W5500FunMsg_enW5500Fun_SnSRGet(char *sp);
int W5500FunMsg_enW5500Fun_socket(char *sp);
int W5500FunMsg_enW5500Fun_Listen(char *sp);
int W5500FunMsg_enW5500Fun_SnIRGet(char *sp);
int W5500FunMsg_enW5500Fun_Close(char *sp);



 


 

 

 

 

 

 

 

 
 

 

#endif
